import $ from 'expose-loader?$!jquery'
require('./css/common.css');
import layer from './components/layer/layer.js';
import head from './components/head/head.js';

const App = function functionName() {
    console.log(layer);
    var app = document.getElementById('app');
    var l = new layer();
    var h = new head();
    console.log(head);
    // dom.innerHTML = l.tpl;
    var div = document.createElement("div");
    div.innerHTML = h.tpl({
        name: 'aaaaaaaa',
        iVal:7
    });
    document.body.insertBefore(div,app);
    div = document.createElement("div");
    div.innerHTML = l.tpl;
    document.body.appendChild(div);
    $("body").prepend(h.tpl({name:'111111',iVal:8}));
}
new App();
